package com.zy.scwwebuis.service.exp;

import com.zy.scwcommon.bean.AppResponse;
import com.zy.scwcommon.entity.TMember;
import com.zy.scwcommon.entity.TMemberAddress;
import com.zy.scwcommon.vo.user.UserAddressVo;
import com.zy.scwwebuis.service.TMemberServiceFeign;
import com.zy.scwwebuis.vo.resp.UserRespVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

/**
* @program: zyzc_springcloud
*
* @description: 
*
* @author: ZYY
*
* @create: 2024-06-20 16:56
**/
@Slf4j
@Component
public class TMemberServiceFeignExceptionHandler implements TMemberServiceFeign {
    @Override
    public AppResponse<UserRespVo> login(String loginacct, String password) {
        AppResponse<UserRespVo> app = AppResponse.fail(null);
        app.setMsg("调用远程服务登录失败");
        log.error("调用远程服务登录失败");
        return app;
    }

    @Override
    public AppResponse<TMemberAddress> selectById (Integer id) {
        AppResponse<TMemberAddress> app = AppResponse.fail(null);
        app.setMsg("调用远程服务----查询member---失败");
        log.error("调用远程服务----查询member---失败");
        return app;
    }

    @Override
    public AppResponse<List<UserAddressVo>> address (String accessToken) {
        AppResponse<List<UserAddressVo>> app = AppResponse.fail(null);
        app.setMsg("调用远程服务----查询用户的多个收货地址---失败");
        log.error("调用远程服务----查询用户的多个收货地址---失败");
        return app;
    }
}
